<template>
  <view class="medical-container">
    <view class="medical-header">
      <text class="medical-title">医疗服务</text>
    </view>

    <view class="medical-content">
      <view class="service-list">
        <view
          class="service-item"
          v-for="(item, index) in serviceList"
          :key="index"
        >
          <view class="service-icon">
            <text class="service-icon-text">{{ item.icon }}</text>
          </view>
          <view class="service-info">
            <text class="service-name">{{ item.name }}</text>
            <text class="service-desc">{{ item.description }}</text>
          </view>
          <view class="service-arrow">
            <text class="arrow-text">></text>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      serviceList: [
        {
          name: "在线问诊",
          description: "专业医生在线解答",
          icon: "👨‍⚕️",
        },
        {
          name: "预约挂号",
          description: "快速预约专家门诊",
          icon: "🏥",
        },
        {
          name: "健康体检",
          description: "全面健康检查服务",
          icon: "🔬",
        },
        {
          name: "药品配送",
          description: "快速药品配送服务",
          icon: "💊",
        },
        {
          name: "检查报告",
          description: "查看检查结果报告",
          icon: "📋",
        },
      ],
    };
  },
  methods: {},
};
</script>

<style scoped>
.medical-container {
  background-color: #f5f5f5;
  min-height: 100vh;
}

.medical-header {
  background-color: #32cd32;
  padding: 40rpx 20rpx;
  text-align: center;
}

.medical-title {
  font-size: 36rpx;
  font-weight: bold;
  color: white;
}

.medical-content {
  padding: 20rpx;
}

.service-list {
  background-color: white;
  border-radius: 20rpx;
  overflow: hidden;
}

.service-item {
  display: flex;
  align-items: center;
  padding: 30rpx 20rpx;
  border-bottom: 1rpx solid #f0f0f0;
}

.service-item:last-child {
  border-bottom: none;
}

.service-icon {
  width: 80rpx;
  height: 80rpx;
  background-color: #f0f8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20rpx;
}

.service-icon-text {
  font-size: 40rpx;
}

.service-info {
  flex: 1;
}

.service-name {
  font-size: 32rpx;
  color: #333;
  font-weight: 500;
  display: block;
  margin-bottom: 10rpx;
}

.service-desc {
  font-size: 26rpx;
  color: #666;
  display: block;
}

.service-arrow {
  color: #ccc;
}

.arrow-text {
  font-size: 32rpx;
}
</style>
